﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Data.SqlClient;
using System.Data;

namespace ZG_member.DAL
{
    public class DBHelper
    {
        public DataSet GetDataSet(string sql)
        {
            using (SqlConnection conn = new SqlConnection(ConfigurationManager.AppSettings["ConnectionString"]))
            {
                SqlDataAdapter sda = new SqlDataAdapter(sql, conn);

                DataSet ds = new DataSet();

                sda.Fill(ds);

                return ds;
            }
        }
    }
}
